home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / slip / cslip-2.6 / sunos4 / net / if_slvar.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-18  |  2.2 KB  |  58 lines

  1. /*
  2.  * Definitions for SLIP interface data structures
  3.  *
  4.  * (this exists so programs like slstats can get at the definition
  5.  *  of sl_softc.)
  6.  *
  7.  * @(#) $Header: if_slvar.h,v 1.9 92/06/18 16:44:14 leres Exp $ (LBL)
  8.  *
  9.  * Copyright (c) 1989, 1990, 1992 Regents of the University of California.
  10.  * All rights reserved.
  11.  *
  12.  * Redistribution and use in source and binary forms are permitted
  13.  * provided that the above copyright notice and this paragraph are
  14.  * duplicated in all such forms and that any documentation,
  15.  * advertising materials, and other materials related to such
  16.  * distribution and use acknowledge that the software was developed
  17.  * by the University of California, Berkeley.  The name of the
  18.  * University may not be used to endorse or promote products derived
  19.  * from this software without specific prior written permission.
  20.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  21.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  22.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  23.  *
  24.  *    Van Jacobson (van@ee.lbl.gov), Dec 31, 1989:
  25.  *    - Initial distribution.
  26.  */
  27. struct sl_softc {
  28.     struct ifnet sc_if;    /* network-visible interface */
  29.     struct ifqueue sc_fastq; /* interactive output queue */
  30.     queue_t *sc_rq, *sc_wq;    /* stream buffer queues */
  31.     u_char *sc_mp;        /* pointer to next available buf char */
  32.     u_char *sc_ep;        /* pointer to last available buf char */
  33.     u_char *sc_buf;        /* input buffer */
  34.     u_int sc_escape;    /* =1 if last char input was FRAME_ESCAPE */
  35.     mblk_t *sc_outmb;    /* used to avoid output buffer allocations */
  36.     mblk_t *sc_pendmb;    /* used to avoid output buffer allocations */
  37.     u_int sc_bytessent;
  38.     u_int sc_bytesrcvd;
  39.     struct slcompress sc_comp; /* tcp compression data */
  40.     caddr_t sc_bpf;        /* bpf magic cookie */
  41. };
  42.  
  43. /*
  44.  * There are three per-line options kept in the device specific part of
  45.  * the interface flags word:  IFF_LINK0 enables compression; IFF_LINK1
  46.  * enables compression if a compressed packet is received from the
  47.  * other side; IFF_LINK2 will drop (not send) ICMP packets.
  48.  */
  49. #ifndef IFF_LINK0
  50. /*
  51.  * This system doesn't have defines for device specific interface flags,
  52.  * Define them.
  53.  */
  54. #define IFF_LINK0    0x1000
  55. #define IFF_LINK1    0x2000
  56. #define IFF_LINK2    0x4000
  57. #endif
  58.